package wk.demo.bean;

import android.net.Uri;

import com.danikula.videocache.file.FileNameGenerator;

import wk.demo.tool.WkLogTool;

/**
 *  用来 边播边录的名字生成器
 */
public class MyFileNameGenerator implements FileNameGenerator {
    public String generate(String url) {
        WkLogTool.showLog("MyFileNameGenerator ,url="+url);
        Uri uri = Uri.parse(url);
        String name =System.currentTimeMillis()+"" ;
        return name + ".mp4";
    }
}